package com.geen.tuoke.ui.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder
import com.geen.tuoke.R
import com.geen.tuoke.bean.MenuCode
import com.geen.tuoke.bean.MenuItem
import com.geen.tuoke.databinding.ItemMenuBinding

/**
 * @Author LuoJi
 * @Date 2021/12/29-13:44
 * @Desc 个人中心功能菜单
 */
class MenuItemAdapter:BaseQuickAdapter<MenuItem,BaseDataBindingHolder<ItemMenuBinding>>(R.layout.item_menu) {

    override fun convert(holder: BaseDataBindingHolder<ItemMenuBinding>, item: MenuItem) {
        with(holder.dataBinding!!){
            menuItem = item
            executePendingBindings()
        }
    }
}